// PasswordPolicy.cpp : implementation of the CApplication class
//

#include "stdafx.h"
#include "PasswordPolicy.h"

CPasswordPolicy::CPasswordPolicy()
{
	// TODO: add member initialization code here
	
}
CPasswordPolicy::~CPasswordPolicy()
{

}

GString CPasswordPolicy::GetDescription() const
{
	return m_description;
}
void CPasswordPolicy::SetDescription( GString nDescription )
{
	m_description=nDescription;
}
const CLenght &CPasswordPolicy::GetLenght() const
{
	return m_lenght;
}
void CPasswordPolicy::SetLenght(const CLenght &nLenght )
{
	this->m_lenght=nLenght;
}
const CUpperCase &CPasswordPolicy::GetUpperCase() const
{
	return m_upperCase;
}
void CPasswordPolicy::SetUpperCase(const CUpperCase &nUpperCase )
{
	this->m_upperCase=nUpperCase;
}
const CLowerCase &CPasswordPolicy::GetLowerCase() const
{
	return m_lowerCase;
}
void CPasswordPolicy::SetLowerCase(const CLowerCase &nLowerCase )
{
	this->m_lowerCase=nLowerCase;
}
const CNumeric &CPasswordPolicy::GetNumeric() const
{
	return m_numeric;
}
void CPasswordPolicy::SetNumeric(const CNumeric &nNumeric )
{
	this->m_numeric=nNumeric;
}
const CSpecialChar &CPasswordPolicy::GetSpecialChar() const
{
	return m_specialChar;
}
void CPasswordPolicy::SetSpecialChar(const CSpecialChar &nSpecialChar )
{
	this->m_specialChar=nSpecialChar;
}
const CPreviousPassword &CPasswordPolicy::GetPreviousPassword() const
{
	return m_previousPassword;
}
void CPasswordPolicy::SetPreviousPassword(const CPreviousPassword &nPreviousPassword )
{
	this->m_previousPassword=nPreviousPassword;
}
const CSequence &CPasswordPolicy::GetSequence() const
{
	return m_sequence;
}
void CPasswordPolicy::SetSequence(const CSequence &nSequence )
{
	this->m_sequence=nSequence;
}

const CDictionary &CPasswordPolicy::GetDictionary() const
{
	return m_dictionary;
}
void CPasswordPolicy::SetDictionary(const CDictionary &nDictionary )
{
	this->m_dictionary=nDictionary;
}

void CPasswordPolicy::MapXMLTagsToMembers()
{
	
	MapMember(&m_description,"Description");
	MapMember(&m_lenght);
	MapMember(&m_upperCase);
	MapMember(&m_lowerCase);
	MapMember(&m_numeric);
	MapMember(&m_specialChar);
	MapMember(&m_previousPassword);
	MapMember(&m_sequence);
	MapMember(&m_dictionary);
}
IMPLEMENT_FACTORY(CPasswordPolicy, PasswordPolicy);